package studentinformationmanagementsystem.entity;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author 苗庆
 * @version 1.0
 * 院系实体类对象
 */
public class Department implements Serializable {
    private static final long serialVersionUID = 1L;

    //院系id
   private Integer departmentid;

    //院系
    private String department;

    //院系介绍
    private String departmentction;

    public Department() {
    }

    public Department(Integer departmentid, String department, String departmentction) {
        this.departmentid = departmentid;
        this.department = department;
        this.departmentction = departmentction;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Department that = (Department) o;
        return departmentid.equals(that.departmentid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(departmentid);
    }

    @Override
    public String toString() {
        return "Department{" +
                "departmentid=" + departmentid +
                ", department='" + department + '\'' +
                ", departmentction='" + departmentction + '\'' +
                '}';
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(Integer departmentid) {
        this.departmentid = departmentid;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getDepartmentction() {
        return departmentction;
    }

    public void setDepartmentction(String departmentction) {
        this.departmentction = departmentction;
    }
}
